package DesignPattern.NullObjectPattern;

public class DivideOperation implements Operation {
    @Override
    public int apply(int a, int b) {
        if (b != 0) {
            return a / b;
        } else {
            System.out.println("Cannot divide by zero. Returning 0.");
            return 0;
        }
    }
}
